/* process.h */

#ifndef PROCESS_H_
#define PROCESS_H_

#include "protocol.h"

typedef int ( *msg_sender)(int, const char *msg);

typedef int (* business_handler)(int, protocol_t *, protocol_t *, msg_sender);

int process_action(int fd, protocol_t *in_msg, protocol_t *out_msg, msg_sender sender);

int tbs_init();

int tbs_end();

#endif /* PROCESS_H_ */
